home *** CD-ROM | disk | FTP | other *** search
/ The AGA Experience 1 / agavol1.iso / aga_utilities / magicwb / misc / magicselector / install magicselector < prev    next >
Text File  |  1978-06-28  |  5KB  |  248 lines

  1. ; script to install MagicSelector 
  2.  
  3. (set Opt 15)
  4. (complete 0)
  5. (set destdir "Sys:Prefs") 
  6. (set destdir2 "Sys:WBStartup") 
  7.  
  8. (set installfiles
  9.     (askoptions
  10.         (prompt "Which of the following optional programs/helpfile should be installed ?")
  11.         (help @askoptions-help)
  12.         (choices "MagicSelector" "MagicSelector Preferences" "MagicSelector.Guide" "MagicSelector Mosaic Doc. (Needs AMosaic)")
  13.         (default Opt)
  14.     )
  15. )
  16.  
  17. (complete 20)
  18.  
  19. ;Copy program files to destination.
  20.  
  21. (if (BITAND installfiles 1)
  22. (copyfiles
  23.     (source "WBStartup/MagicSelector")
  24.     (dest destdir2)
  25. )
  26. )
  27.  
  28. (if (BITAND installfiles 1)
  29. (copyfiles
  30.     (source "WBStartup/MagicSelector.info")
  31.     (dest destdir2)
  32. )    
  33. )
  34.  
  35.  
  36. (if (BITAND installfiles 2)
  37. (copyfiles
  38.     (source "Preferences/MagicSelector")
  39.     (dest destdir)
  40. )
  41. )
  42.  
  43. (if (BITAND installfiles 2)
  44. (copyfiles
  45.     (source "Preferences/MagicSelector.info")
  46.     (dest destdir)
  47. )    
  48. )
  49.  
  50.  
  51. (if (BITAND installfiles 4)
  52. (
  53.     (makedir ("Help:English")
  54.     )
  55.  
  56. (copyfiles
  57.     (source "Help/MagicSelector.guide")
  58.     (dest "help:english/")
  59. )
  60. )
  61. )
  62.  
  63. (if (BITAND installfiles 4)
  64. (copyfiles
  65.     (source "Help/MagicSelector.guide.info")
  66.     (dest "help:english/")
  67. )
  68. )
  69.  
  70. (if (BITAND installfiles 8)
  71. (
  72.      (set Mosaic_dest
  73.         (tackon
  74.         (askdir
  75.         (prompt "In which disk or drawer should the MagicSelector Mosaic Documentation be installed? (A drawer WILL be created there.)")
  76.         (help @askdir-help)
  77.         (default @default-dest)
  78.         )"MagicSelector Mosaic")
  79.         )
  80.  
  81.         (makedir Mosaic_dest (infos))
  82.  
  83.         (copyfiles
  84.             (prompt "Copying all Patterns ?")
  85.             (help @copyfiles-help)
  86.             (source "Mosaic/")
  87.             (dest Mosaic_dest)
  88.             (pattern "#?")
  89.             (infos)
  90. )
  91. )
  92. )
  93.  
  94. (complete 40)
  95. (set Opt 16)
  96.  
  97. (set installfiles
  98.     (askoptions
  99.         (prompt "Which of the following locale should be installed ?")
  100.         (help @askoptions-help)
  101.         (choices "Norsk" "Deutsch" "Svenska" "Italiano" "English (built-in)")
  102.         (default Opt)
  103.     )
  104. )
  105.  
  106. (if (BITAND installfiles 1)
  107. (copyfiles
  108.     (source "Preferences/Catalogs/Norsk/MagicSelector.Catalog")
  109.     (dest "Locale:Catalogs/Norsk/")
  110. )
  111. )
  112.  
  113. (if (BITAND installfiles 2)
  114. (copyfiles
  115.     (source "Preferences/Catalogs/Deutsch/MagicSelector.Catalog")
  116.     (dest "Locale:Catalogs/Deutsch/")
  117. )
  118. )
  119.  
  120. (if (BITAND installfiles 4)
  121. (copyfiles
  122.     (source "Preferences/Catalogs/Svenska/MagicSelector.Catalog")
  123.     (dest "Locale:Catalogs/Svenska/")
  124. )
  125. )
  126.  
  127. (if (BITAND installfiles 8)
  128. (copyfiles
  129.     (source "Preferences/Catalogs/Italiano/MagicSelector.Catalog")
  130.     (dest "Locale:Catalogs/italiano/")
  131. )
  132. )
  133.  
  134.  
  135. (set Opt 3)
  136. (complete 60)
  137.  
  138. (set installfiles
  139.     (askoptions
  140.         (prompt "Do you want to install Patterns/Sound Samples ?")
  141.         (help @askoptions-help)
  142.         (choices "Triumph Patterns" "Sound")
  143.         (default Opt)
  144.     )
  145. )
  146.  
  147.  
  148. (if (BITAND installfiles 1)
  149. (run "lx x Triumph_Patterns/Patterns.lha ram:"))
  150.  
  151. (if (BITAND installfiles 1)
  152. (
  153.      (set Patterns_dest
  154.         (tackon
  155.         (askdir
  156.         (prompt "In which disk or drawer should the Triumph Patterns be installed? (A drawer WILL be created there.)")
  157.         (help @askdir-help)
  158.         (default @default-dest)
  159.         )"Triumph Patterns")
  160.         )
  161.  
  162.         (makedir Patterns_dest (infos))
  163.  
  164.         (copyfiles
  165.             (prompt "Copying all Patterns ?")
  166.             (help @copyfiles-help)
  167.             (source "ram:Triumph Patterns/")
  168.             (dest Patterns_dest)
  169.             (pattern "#?")
  170.             (infos)
  171.             (files)
  172.             (confirm)
  173. )
  174. )
  175. )
  176.  
  177. (complete 80)
  178.  
  179. (if (BITAND installfiles 2)
  180. (run "lx x Samples/Samples.lha ram:"))
  181.  
  182. (if (BITAND installfiles 2)
  183. (
  184.      (set Samples_dest
  185.         (tackon
  186.         (askdir
  187.         (prompt "In which disk or drawer should the Samples be installed? (A drawer WILL be created there.)")
  188.         (help @askdir-help)
  189.         (default @default-dest)
  190.         )"Samples")
  191.         )
  192.  
  193.         (makedir Samples_dest (infos))
  194.  
  195.         (copyfiles
  196.             (prompt "Copying all Samples ?")
  197.             (help @copyfiles-help)
  198.             (source "ram:Samples/")
  199.             (dest Samples_dest)
  200.             (pattern "#?")
  201.             (infos)
  202.             (files)
  203.             (confirm)
  204. )
  205. )
  206. )
  207.  
  208. (copyfiles
  209.     (source "WBPattern.prefs")
  210.     (dest "ENVARC:SYS/")
  211. )
  212.  
  213. (copyfiles
  214.     (source "WBPattern.prefs")
  215.     (dest "ENV:SYS/")
  216. )
  217.  
  218. (copyfiles
  219.     (source "Sound.prefs")
  220.     (dest "ENVARC:SYS/")
  221. )
  222.  
  223. (copyfiles
  224.     (source "Sound.prefs")
  225.     (dest "ENV:SYS/")
  226. )
  227.  
  228. ;Correct @default-dest so that final information is correct.
  229. (set @default-dest destdir)
  230.  
  231. (run "avail flush")
  232.  
  233. (complete 95)
  234.  
  235. (message "FOR NEW USERS!\nYou have to set up MagicSelector Preferences to\n"
  236.             "get the MagicSelector package to work at the next reboot.\n\n"
  237.             "FOR OLD USERS!\nYou need to save the prefs file "
  238.             "to update the prefsfile to version 1.60.\n\n"
  239.             "Do NOT try to change the WBPattern settings when "
  240.             "using MagicSelector. It will cause double "
  241.             "background patterns at the Startup.\n\n"
  242.             "THIS SOFTWARE PACKAGE IS SHAREWARE!\n"
  243. )
  244.  
  245. (run "sys:prefs/MagicSelector")
  246.  
  247. (exit)
  248.